<?php  echo $_SERVER['SCRIPT_NAME']."<BR>"; ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="../include/main.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="100%"  border="0" cellspacing="6" cellpadding="6">
  <tr>
    <td><div align="right" class="txt24bb_white">Basic Data Types </div></td>
  </tr>
</table>
<br>
<br>
<table width="500" border="0" align="center" cellpadding="1" cellspacing="1" class="tbl_border">
  <tr>
    <td><table width="100%"  border="0" cellpadding="0" cellspacing="0" class="tbl_gray_wborder">
        <tr>
          <td class="txt14b_black">            
<?php
$str  = "I am a string :)";  // a string
$int  = 22;    // an integer
$bool = TRUE;  // a boolean
$float = 1.234; // a floating point number.
$float2 = 3.1415927;  // a floating point number.
$float3 = 5.3e7;  // a floating point number.

echo gettype($str), " <BR>";  // prints out "string"
echo gettype($int), " <BR>";  // prints out "integer"
echo gettype($float), " <BR>";  // prints out "integer"
echo gettype($bool), " <BR><BR>"; // prints out "boolean"

// If this is an integer, increment it by four
 echo "int has a value of $int. <BR>";
if (is_int($int)) {
   $int += 17;
   echo "Now int has a value of $int. <BR>";
}

// If $bool is a string, then print it out
if (is_string($bool)) {
   echo "I am echoing a String: $bool <BR>";
}

echo "The boolean bool has a value of:", $bool, "<BR>";
echo"The float variable has a value of $float. <BR>";
echo"The float2 variable has a value of $float2. <BR>";
echo"The float3 variable has a value of $float3. <BR>";

?>                    
<?php

$int_10 = 1000;
$int_8 = 01000;
$int2_8 = 01010;
$int_16 = 0x01010;
$int2_16 = 0x0AB1FF;
$int3_16 = 0x0000FF;

$int4 = 24000000000;
$int5 = -24000000000.26;

$int = 1000;
$int = $int + 1;
$int += 1000;
$int -= 500;
echo "<br><br>$int";

echo "<br><br>The decimal int_10 has a value of: ", $int_10, "<BR>";
echo"The octal int_8 variable has a value of $int_8. <BR>";
echo"The octal int2_8 variable has a value of $int2_8. <BR>";
echo"The hex int_16 variable has a value of $int_16. <BR>";
echo"The hex int2_16 variable has a value of $int2_16. <BR>";
echo"The hex int3_16 variable has a value of $int3_16. <BR>";
echo"The integer int4 variable has a value of $int4. <BR>";
echo"The integer int5 variable has a value of $int5. <BR>";

?>
<?php
	/*
		is_numeric()
		is_bool()
		is_int()
		is_numeric()
		is_string()
		is_array()
		is_object()
		is_null()
	*/


?>
	</td>
        </tr>
    </table></td>
  </tr>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
</body>
</html>